.datagrid .panel-body {
  overflow: hidden;
  position: relative;
}
.datagrid-view {
  position: relative;
  overflow: hidden;
}
.datagrid-view1,
.datagrid-view2 {
  position: absolute;
  overflow: hidden;
  top: 0;
}
.datagrid-view1 {
  left: 0;
}
.datagrid-view2 {
  right: 0;
}
.datagrid-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  filter: alpha(opacity=30);
  display: none;
}
.datagrid-mask-msg {
  position: absolute;
  top: 50%;
  margin-top: -20px;
  padding: 10px 5px 10px 30px;
  width: auto;
  height: 16px;
  border-width: 2px;
  border-style: solid;
  display: none;
}
.datagrid-sort-icon {
  padding: 0;
  display: none;
}
.datagrid-toolbar {
  height: auto;
  padding: 1px 2px;
  border-width: 0 0 1px 0;
  border-style: solid;
}
.datagrid-btn-separator {
  float: left;
  height: 24px;
  border-left: 1px solid #444;
  border-right: 1px solid #777;
  margin: 2px 1px;
}
.datagrid .datagrid-pager {
  display: block;
  margin: 0;
  border-width: 0;
  border-style: solid;
}

.datagrid .datagrid-pager.pagination .pagination-info{
  height: 38px;
  line-height: 38px;
}

.datagrid .datagrid-pager.pagination table{
  height: 38px;
}


.datagrid .datagrid-pager-top {
  border-width: 0 0 1px 0;
}
.datagrid-header {
  overflow: hidden;
  cursor: default;
  border-width: 0 0 1px 0;
  border-style: solid;
}
.datagrid-header-inner {
  float: left;
  width: 10000px;
}
.datagrid-header-row,
.datagrid-row {
  height: 38px;
}
.datagrid-header td,
.datagrid-body td,
.datagrid-footer td {
  border-width: 0 1px 1px 0;
  border-style: solid;
  margin: 0;
  padding: 0;
}
.datagrid-cell,
.datagrid-cell-group,
.datagrid-header-rownumber,
.datagrid-cell-rownumber {
  margin: 0;
  padding: 0 4px;
  white-space: nowrap;
  word-wrap: normal;
  overflow: hidden;
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  font-weight: normal;
  color: #000;
}
.datagrid-header-row .datagrid-cell{
  font-weight: bold;
}

.datagrid-header .datagrid-cell {
  height: auto;
}
.datagrid-header .datagrid-cell span {
  font-size: 12px;
}
.datagrid-cell-group {
  text-align: center;
  text-overflow: ellipsis;
}
.datagrid-header-rownumber,
.datagrid-cell-rownumber {
  width: 39px;
  text-align: center;
  color: #000;
  margin: 0;
  padding: 0;
}
.datagrid-body {
  margin: 0;
  padding: 0;
  overflow: auto;
  zoom: 1;
}
.datagrid-view1 .datagrid-body-inner {
  padding-bottom: 20px;
}
.datagrid-view1 .datagrid-body {
  overflow: hidden;
}
.datagrid-footer {
  overflow: hidden;
}
.datagrid-footer-inner {
  border-width: 1px 0 0 0;
  border-style: solid;
  width: 10000px;
  float: left;
}
.datagrid-row-editing .datagrid-cell {
  height: auto;
}
.datagrid-header-check,
.datagrid-cell-check {
  padding: 0;
  width: 27px;
  height: 18px;
  font-size: 1px;
  text-align: center;
  overflow: hidden;
}
.datagrid-header-check input,
.datagrid-cell-check input {
  margin: 0;
  padding: 0;
  width: 15px;
  height: 18px;
}
.datagrid-resize-proxy {
  position: absolute;
  width: 1px;
  height: 10000px;
  top: 0;
  cursor: e-resize;
  display: none;
}
.datagrid-body .datagrid-editable {
  margin: 0;
  padding: 0;
}
.datagrid-body .datagrid-editable table {
  width: 100%;
  height: 100%;
}
.datagrid-body .datagrid-editable td {
  border: 0;
  margin: 0;
  padding: 0;
}
.datagrid-view .datagrid-editable-input {
  margin: 0;
  padding: 2px 4px;
  border: 1px solid #000;
  font-size: 12px;
  outline-style: none;
  -moz-border-radius: 0 0 0 0;
  -webkit-border-radius: 0 0 0 0;
  border-radius: 0 0 0 0;
}
.datagrid-view .validatebox-invalid {
  border-color: #ffa8a8;
}
.datagrid-sort .datagrid-sort-icon {
  display: inline;
  padding: 0 13px 0 0;
  background: url('images/datagrid_icons.png') no-repeat -64px center;
}
.datagrid-sort-desc .datagrid-sort-icon {
  display: inline;
  padding: 0 13px 0 0;
  background: url('images/datagrid_icons.png') no-repeat -16px center;
}
.datagrid-sort-asc .datagrid-sort-icon {
  display: inline;
  padding: 0 13px 0 0;
  background: url('images/datagrid_icons.png') no-repeat 0px center;
}
.datagrid-row-collapse {
  background: url('images/datagrid_icons.png') no-repeat -48px center;
}
.datagrid-row-expand {
  background: url('images/datagrid_icons.png') no-repeat -32px center;
}
.datagrid-mask-msg {
  background: #666 url('images/loading.gif') no-repeat scroll 5px center;
}
.datagrid-header,
.datagrid-td-rownumber {
  background-color: #308fbb;
  color: #daf5fd;
  // background: -webkit-linear-gradient(top,#f1f1f1 0,#f1f1f1 100%);
  // background: -moz-linear-gradient(top,#f1f1f1 0,#f1f1f1 100%);
  // background: -o-linear-gradient(top,#f1f1f1 0,#f1f1f1 100%);
  // background: linear-gradient(to bottom,#f1f1f1 0,#f1f1f1 100%);
  // background-repeat: repeat-x;
  // filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f1f1f1,endColorstr=#f1f1f1,GradientType=0);
}
.datagrid-cell-rownumber {
  color: #000;
}
.datagrid-resize-proxy {
  background: #cccccc;
}
.datagrid-mask {
  background: #000;
}
.datagrid-mask-msg {
  border-color: #000;
}
.datagrid-toolbar,
.datagrid-pager {
  background: #f1f1f1;
}

.datagrid-toolbar{
  line-height: 55px;
}

.datagrid-header,
.datagrid-toolbar,
.datagrid-pager,
.datagrid-footer-inner {
  border-color: #21262c;
}
.datagrid-header td,
.datagrid-body td,
.datagrid-footer td {
  border-color: #21262c;
}
.datagrid-htable,
.datagrid-btable,
.datagrid-ftable {
  color: #000;
  font-weight: bold;
  text-align: left;
  border-collapse: separate;
}
.datagrid-row-alt {
  background: #f8f8f8;
}
.datagrid-row-over,
.datagrid-header td.datagrid-header-over {
  background: #f1f1f1;
  color: #000;
  cursor: default;
}
.datagrid-row-selected {
  background: #CCE6FF;
  color: #000;
}

.datagrid-row-selected.datagrid-row-alt{
  background: #f8f8f8;
}

.datagrid-row-editing .textbox,
.datagrid-row-editing .textbox-text {
  -moz-border-radius: 0 0 0 0;
  -webkit-border-radius: 0 0 0 0;
  border-radius: 0 0 0 0;
}

.datagrid{
  .panel-tool-collapse:hover{
    background:image-url('new/grid.png') 0 0;
  }

  .panel-tool-expand:hover{
    background:image-url('new/grid.png') -16px 0;
  }
}

//add by gh
.panel.datagrid{
  background: transparent;
  .panel-header{
    // 
    background-color: #0eb4e8;
    .panel-title{
      color: #000;
      height: 20px;
      line-height: 20px;
    }
  }
  .datagrid-wrap.panel-body{
    background: transparent;
    border: 0;
    .datagrid-toolbar{
      background-color: transparent;
    }
      .datagrid-header{
        height: 28px;
        background-color: transparent;
        // border: 0;
        .datagrid-header-row{
          td{
            border-width: 0 1px 1px 0;
            border-right-color: #21262c;
          }
        }
        td{
          border-width: 0 1px 1px 0;
          border-right-color: #21262c;
          &.datagrid-header-over{
            background-color: #308fbb;
          }
        }
        .datagrid-header-inner{
          background-color: #308fbb;
          .datagrid-htable{
            .datagrid-cell{
              padding: 0 13px;
              color: #ffaa00;
              span{
                font-size: 14px;
              }
            }
            .datagrid-header-row{
              height: 30px !important;
            }
          }
        }
      }
      .datagrid-body{
        .datagrid-row{
          height: 30px;
          background:rgba(48, 143, 187, 0.3);
          &.datagrid-row-over{
            background-color:rgba(48, 143, 187, 0.3) !important;
          }
          &.datagrid-row-selected{
            // background: none;
          }
          // &:nth-child(2n){
          //    background:rgba(48, 143, 187, 0.3);
          // }
        }
        td{
          // &.datagrid-td-rownumber{
          //   border: 0;
          // }
          // border-width: 0 2px 0 0;
          // border-right-color:transparent;
          .datagrid-cell{
            padding: 0 13px;
            color: #ecebf0;
            font-size: 14px;
            span{
              font-size: 14px;
            }
          }
        }
      }
  }
}

.datagrid-cell-rownumber{
  color: #daf5fd;
}
